<?php
namespace app\admin\controller;
use \think\Controller;
use \think\Db;
class User extends Common
{
	public function index(){
		$users=Db::name('user')->select();
		$this->assign('users',$users);
		return $this->fetch();
	}
	public function delete(){
		if(Db::name('user')->delete($id)){
			$this->success('删除成功');
		}
		else{
			$this->error('删除失败');
		}

	}

}